package com.dhcc.sds.standard.service;

import java.util.List;
import java.util.Map;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.plugins.Page;
import com.dhcc.core.framework.base.service.IBaseService;
import com.dhcc.core.framework.result.node.ZTreeNode;
import com.dhcc.sds.standard.entity.SdsStandSourceEntity;

/**
 * 数据源定义表数据服务层接口
 * 
 * @ClassName: ISdsStandSourceService
 * @Description: TODO
 * @author sunyingjie
 * @date 2021-03-22 10:09:52
 */
public interface ISdsStandSourceService  extends IBaseService<SdsStandSourceEntity> {
	
    List<SdsStandSourceEntity> page(Page<SdsStandSourceEntity> page,Map<String, Object> map);
    List<SdsStandSourceEntity> list(Map<String, Object> map);

    /**
     * 查询数据源Map
     * @return
     */
    JSONObject getSourceMap();

    SdsStandSourceEntity getSourceByDesc(String desc);

    List<ZTreeNode> getEntityTree();

    //根据标准项id查询数据源名称
    String getSourceNameByDic(Long id);
    //根据标准子项id查询数据源名称
    String getSourceNameByDicSub(Long id);

    JSONArray getSourceArrayMap();
}
